package com.hand.cloud.controller;

import com.hand.cloud.service.HelloFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/feign/consumer")
public class HelloController {
    @Resource
    private HelloFeignService helloFeignService;

    @GetMapping("/hello")
    public String hello() {
        return helloFeignService.hello();
    }
}
